LONDON - Oil rallied with other commodities and the euro on Friday, rising by $3 a barrel after European leaders agreed on a strategy to tackle soaring borrowing costs in Italy and Spain, but it was still set for the deepest quarterly loss since 2008.